/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sfs2x.extension.fourinarow.main;

import com.athena.objects.Game;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author dodinhchien
 */
public class TaskRunner implements Runnable{
    
    private final FourinarowExtension extension;
    private final Game game;

    public TaskRunner(FourinarowExtension extension, Game game) {
        this.extension = extension;
        this.game = game;
    }
    
    @Override
    public void run() {
        try {
            game.autoMove(extension);
        } catch (SQLException ex) {
            Logger.getLogger(TaskRunner.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
}
